package com.example.messagemodule.ui.fragment;

import android.text.TextUtils;
import android.widget.TextView;

import com.example.messagemodule.R;
import com.examination.mlib.baseold.ModuleBaseFragment;
import com.zzhoujay.richtext.RichText;


public class HealthConsultArticleFragment extends ModuleBaseFragment {

    private String content;


    private TextView healthConsultArticleText;


    @Override
    public int bondLayout() {
        return R.layout.fragment_health_consult_article;
    }

    @Override
    public void initView() {
        healthConsultArticleText = (TextView) findViewById(R.id.healthConsult_article_text);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initEvent() {

    }

    public void setContent(String content) {
        this.content = content;
    }

    public void refreshFragment() {
        if (!TextUtils.isEmpty(content)) {
            RichText.from(content).bind(this)
                    .showBorder(false)
                    .into(healthConsultArticleText);
        }
    }

}